package com.github.lianyutian.demo;

public class DecoratorPhone implements Phone {
    private Phone phone;

    public DecoratorPhone(Phone phone) {
        this.phone = phone;
    }

    @Override
    public void call() {
        System.out.println("链接卫星");
        phone.call();
    }

    public void sendMessage() {
        System.out.println("发短信");
    }
}
